/* Mixins */
@mixin clearfix {
  &:after {
    content: "";
    display: table;
    clear: both;
  }
}

//flex布局 参数为可用布局 $shenhy 2020-07-06 17:50:00
@mixin flex($justify: space-between,$align: center) {
  display: flex;
  justify-content: $justify;
  align-items: $align;
}

//字体样式 $shenhy 2020-07-06 17:50:00
@mixin font($font_size,$line_height,$color, $fontWeight: 400) {
  font-size: $font_size;
  line-height: $line_height;
  color: $color;
  font-weight: $fontWeight;
}

//背景颜色和字体颜色 $shenhy 2020-07-06 17:50:00
@mixin bgColor($color, $bgColor) {
  color: $color;
  background-color: $bgColor;
}
 
// 页面padding-top $wangyz 
@mixin pageTop($top){
  padding-top: $top;
}
// 图片盒子
@mixin imgBox($width,$height){
  display: inline-block;
  width: $width;
  height: $height;
  img{
    width: 100%;height: 100%;
  }
}


// 单行省略号
@mixin ellipsis-single{
  overflow: hidden; /*超出部分隐藏*/
  white-space: nowrap; /*禁止换行*/
  text-overflow: ellipsis;
}

// 多行省略号
@mixin ellipsis-multi-row($num: 2){
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: $num;
  overflow: hidden;
}
// 隐藏滚动条
@mixin hideScrollbar(){
  -webkit-overflow-scrolling: touch;
  &::-webkit-scrollbar {
    display: none;
  }
}
